package fun.util.daohelper.expression;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: bin
 * Date: Jan 23, 2006
 * Time: 9:21:49 PM
 * To change this template use File | Settings | File Templates.
 */
public abstract class NameValueExpression<T extends Serializable> implements SearchExpression {

    private T value;
    private String fieldName;

    public NameValueExpression( String fieldName, T value ) {
        this.fieldName = fieldName;
        this.value = value;
    }

    public T getValue() {
        return value;
    }

    public String getFieldName() {
        return fieldName;
    }

}
